package cn.doctor.assistant.pad.base;

import android.util.Log;

import cn.doctor.assistant.pad.ui.UI;

/**
 * Created by jiaolf on 2016/2/22.
 * 网络请求结果的回调接口
 */
public abstract class ResultCallback<T> {

    public void onFail(String msg) {
        Log.e("jzsn", msg);
        UI.showToast(msg);
    }

    public abstract void onSuccess(T result);

}
